# 通过数组进行定位
import time

from selenium import webdriver
import os
driver = webdriver.Chrome()
file = "file:///" + os.path.abspath("e:\比特课件\selenium2html\drop_down.html")
driver.get(file)

options = driver.find_element_by_id("ShippingMethod").find_elements_by_tag_name("option")
options[0].click()
time.sleep(3)
driver.quit()

